package com.cloud.api.upms.domain.dept;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * Author:  xuanning
 * Date:    2023/2/9 16:37
 */
@Data
public class DeptAddUpdateReq {
    /**
     *主键
     */
    private Long id;
    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    private String deptName;
    /**
     *排序
     */
    private Integer sort=0;
    /**
     *父id
     */
    @NotNull(message = "名称不能为空")
    private Long pid;

}
